package personal.learn.config;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * Created by weishaofei on 2017/7/19.
 */
@Service
public class CountStar {

    @Cacheable("count")
    public int count() {
        System.out.println("count ...");
        return 3;
    }

}
